<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <title>Document</title>
    <link rel="stylesheet" href="./vue音乐播放器.css">
    <link rel="stylesheet" href="./font-awesome-4.7.0/css/font-awesome.min.css">
    <script src="../vue.js" type="text/javascript"></script>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
</head>

<body>
    
    <div id="app">

        <nav class="navbar">

            <div class="navbarHeadLine">
                <h2>悦听</h2>
            </div>
            <div class="searchbox">
                <i class="fa fa-search" aria-hidden="true"></i>
                <div class="shelterlayer"></div>
                <input type="text" class="search" v-model="musicORplayer" @keyup.enter="searchMusic">
            </div>

        </nav>

        <section class="mainContent">

            <div class="musicListBox">
                <ul class="musicList">
                    <li v-for="(name, index) in musicNameList">
                        <div class="musicblock">
                            <i class="fa fa-play-circle-o fa-lg" aria-hidden="true" @click="playMusic(index)"></i>
                            <span @click="playMusic(index)">{{name}}</span>
                            <i class="fa fa-youtube-play fa-lg" aria-hidden="true"></i>
                        </div>
                    </li>
                </ul>
            </div>

            <div class="content">
                <p>{{musicORplayer}}</p>
                <p>{{playUrl}}</p>
            </div>

            <div class="commentBox">
                <h3>热门留言</h3>
                <ul class="comment">
                    <li></li>
                </ul>
            </div>

        </section>

        <footer class="musicPlayer">
            <audio class="controller" controls :src="playUrl" autoplay></audio>
        </footer>

    </div>

    <script src="./vue音乐播放器.js"></script>

</body>
</html>